/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MineFightingStrength;

import net.tygzs.minerpg.Main;
import net.tygzs.minerpg.lib.MathLib;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 *
 * @author thtTNT
 */
public class Executor
{

    public static void sendFightingStrength(CommandSender sender)
    {
        int kill = Main.getPVPConfig().getKill(sender.getName());
        int killed = Main.getPVPConfig().getKilled(sender.getName());
        sender.sendMessage(ChatColor.GREEN + "杀人数:" + kill);
        sender.sendMessage(ChatColor.GREEN + "被杀数:" + killed);
        double KD = kill / killed;
        sender.sendMessage(ChatColor.GREEN + "K/D:" + MathLib.cutDouble(2, KD));
    }
}
